/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-2-5 上午11:11 Created by piaohh
 */
package com.jade.bss.beacon.uuid;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author <a href="mailto:Administrator@ceno.cn">piaohh</a>
 * @version 1.0 15-2-5 上午11:11
 */
@Entity
@Table (name = "BSS_BEACON_UID")
public class Uuid
{
    public static final int STATUS_AVAILABLE = 0;
    public static final int STATUS_PAUSE = 1;

    /**uid唯一标识 */
    @Id
    private String id;
    @Column (name = "status")
    private int status;
    /** 创建时间 */
    @Column (name = "creation_time", nullable = false, updatable = false)
    private Date creationTime;
    /** 最近更新时间 */
    @Column (name = "last_update_time")
    private Date lastUpdateTime;

    public String getId()
    {
        return id;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public Date getLastUpdateTime()
    {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime)
    {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }

    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }
}
